﻿<UserControl x:Class="OI.Views.TopRightView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Micro="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro" mc:Ignorable="d"
    Height="64" Width="Auto">
    
    <Grid x:Name="LayoutRoot">
        <StackPanel Orientation="Horizontal">
            <!--Yellow Pages Icon-->
            <StackPanel x:Name="ShowPhonebook" 
                        VerticalAlignment="Center" 
                        Background="White"
                        ToolTipService.ToolTip="click to enable street address search"
                        Micro:Message.Attach="[Event MouseLeftButtonDown] = [Action PhonebookClick()]">
                
                <Viewbox Name="Phonebook" Width="22.0857" Height="28.1491" Canvas.Left="4.16433" Margin="0,0,4,0" Canvas.Top="2.10094">
                    <Canvas Width="22.0857" Height="28.1491" Opacity="{Binding PhonebookOpacity}">
                        <Path Width="22.0857" Height="28.1491" Canvas.Left="4.76837e-007" Canvas.Top="0" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Stroke="#FF000000" Fill="#FFF5F1EE" Data="F1 M 0.25,8.49621L 5.10071,3.16042L 11.8917,5.58578L 16.7424,0.25L 21.8357,20.623L 16.7424,24.9886L 10.194,23.5334L 5.10071,27.8991L 0.25,8.49621 Z "/>
                        <Path Width="5.59325" Height="20.873" Canvas.Left="4.85071" Canvas.Top="2.91042" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="#FF000000" Data="F1 M 5.10071,3.16042L 10.194,23.5334"/>
                        <Path Width="5.35071" Height="19.9029" Canvas.Left="11.6417" Canvas.Top="5.33578" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="#FF000000" Data="F1 M 11.8917,5.58578L 16.7424,24.9886"/>
                        <Path Width="16.2725" Height="8.05662" Canvas.Left="1.96423" Canvas.Top="6.97663" Stretch="Fill" StrokeThickness="0.25" StrokeLineJoin="Round" Stroke="#FF838383" Data="F1 M 2.08923,14.9082C 3.42944,14.5732 4.43486,13.4015 5.39378,12.4071C 5.66663,12.1241 5.93948,11.8412 6.21233,11.5582C 6.39525,11.3685 6.62563,11.0624 6.87931,11.1338C 6.99625,11.1667 7.04528,11.3118 7.137,11.3915C 7.23772,11.4789 7.34517,11.5588 7.45533,11.634C 8.10112,12.075 8.72504,12.5505 9.39561,12.9528C 9.96644,13.2953 10.7159,13.1825 11.3814,13.165C 12.0185,13.1483 12.6938,13.296 13.2913,13.0741C 13.3909,13.0371 13.4987,13.0068 13.5794,12.9376C 13.6806,12.8508 13.7276,12.7136 13.8219,12.6193C 14.5351,11.9061 15.0959,11.0527 15.6712,10.2243C 16.4248,9.13919 17.3111,8.15245 18.1117,7.10163"/>
                        <Path Width="16.0603" Height="12.8241" Canvas.Left="2.99501" Canvas.Top="7.87845" Stretch="Fill" StrokeThickness="0.25" StrokeLineJoin="Round" Stroke="#FFCCCCD4" Data="F1 M 3.12001,20.5775C 3.35325,20.0686 3.79576,19.6646 3.98404,19.1375C 4.51993,17.637 5.00142,16.0754 5.07545,14.4838C 5.1284,13.3453 5.18857,12.2055 5.31798,11.0731C 5.42496,10.1371 5.55804,8.97045 6.3336,8.43557C 6.66126,8.2096 6.94964,8.98425 7.33406,9.08739C 8.33974,9.35721 9.40066,9.43311 10.4415,9.40572C 10.9453,9.39246 11.4976,9.46094 11.9422,9.22381C 12.2797,9.04384 12.4193,8.57364 12.776,8.43557C 13.6343,8.1033 14.585,7.96837 15.5045,8.01114C 15.5975,8.01546 15.6915,8.03562 15.7773,8.07177C 15.886,8.1175 15.9727,8.20604 16.0805,8.25367C 16.3638,8.37885 16.7232,8.43831 16.8991,8.69327C 17.1917,9.11754 17.2913,9.66622 17.6267,10.0575C 17.9624,10.4492 18.4549,10.6911 18.9303,10.8912"/>
                        <Path Width="6.58104" Height="20.0688" Canvas.Left="6.78462" Canvas.Top="3.91462" Stretch="Fill" StrokeThickness="0.25" StrokeLineJoin="Round" Stroke="#FF838383" Data="F1 M 6.90962,4.03962C 7.50024,6.40208 7.71084,8.90229 8.74205,11.1116C 9.29025,12.2861 9.79371,13.4863 10.4528,14.6046C 10.7995,15.1928 11.3487,15.6744 11.5883,16.3121C 11.9284,17.2169 12.0377,18.1944 12.3518,19.1084C 12.6091,19.8569 13.1231,20.532 13.2261,21.3169C 13.3006,21.885 13.0649,22.4611 13.0757,23.0347C 13.0778,23.1433 13.0479,23.2508 13.0277,23.3579C 13.0109,23.4469 12.9657,23.5323 12.965,23.6225C 12.9643,23.7032 12.9427,23.877 13.0235,23.8568C 13.1246,23.8315 13.1058,23.6703 13.1469,23.577"/>
                        <Path Width="7.19258" Height="16.9395" Canvas.Left="13.2573" Canvas.Top="4.55127" Stretch="Fill" StrokeThickness="0.25" StrokeLineJoin="Round" Stroke="#FFCCCCD4" Data="F1 M 13.3823,4.67627C 14.0342,7.28384 14.7285,9.8852 15.2165,12.5284C 15.4246,13.6559 15.6508,14.7812 15.9289,15.8935C 16.0808,16.5012 16.1686,17.1538 16.5049,17.6822C 17.1998,18.7742 18.4592,19.3853 19.3547,20.3198C 19.4124,20.38 19.3762,20.4888 19.4154,20.5624C 19.4592,20.6446 19.5283,20.7119 19.5973,20.7746C 19.8285,20.9848 20.1778,21.09 20.3249,21.3658"/>
                        <Path Width="16.2574" Height="11.9827" Canvas.Left="4.14705" Canvas.Top="13.5857" Stretch="Fill" StrokeThickness="0.25" StrokeLineJoin="Round" Stroke="#FF838383" Data="F1 M 4.27205,25.4434C 5.36291,24.5084 6.57518,23.6524 7.3947,22.4723C 7.78122,21.9157 8.13141,21.3321 8.44063,20.7291C 8.68412,20.2543 8.72235,19.6431 9.1076,19.2739C 9.41217,18.982 9.88601,19.6353 10.3051,19.6832C 11.3658,19.8044 12.4429,19.7287 13.5036,19.8499C 13.8188,19.8859 14.1336,19.9327 14.4434,20.0015C 14.6949,20.0574 15.0304,20.1798 15.2165,20.0015C 15.617,19.6177 15.4761,18.8958 15.7925,18.4402C 16.2379,17.7988 16.5143,17.0503 16.9597,16.4089C 17.4815,15.6576 18.1585,14.9901 18.9303,14.499C 19.3697,14.2193 19.7741,13.837 20.2794,13.7107"/>
                    </Canvas>
                </Viewbox>


            </StackPanel>
            
            <!--Main top-right content-->
            <ContentControl Name="ActiveItem" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
        </StackPanel>
    </Grid>
</UserControl>
